import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

// vant
import { Lazyload, Notify } from 'vant';
import 'vant/es/notify/style'
import 'vant/es/toast/style'


router.beforeEach((to, from, next) => {
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next();
})

createApp(App).use(Lazyload, Notify).use(router).use(createPinia()).mount('#app')


